package  Player
{
	/**
	 * ...
	 * @author lzn
	 */
	public class AnimationUnit 
	{
		//动画间隔时间
		private var  delay:int;
		public function get Delay( ):int
		{
			return delay;
		}
		//计时统计
		public var delayConter:int;
		
		//动画名称
		private var  name:String;
		public function get Name( ):String
		{
			return name;
		}	
		
		private var frames:Vector.<FrameUnit>;
		public function get Frames():Vector.<FrameUnit>
		{
			return frames;
		}
		
		public var i:int = 0;
		
		public function AnimationUnit(_name:String,_delay:int) 
		{
			name = _name;
			delay = _delay;			
			frames = new Vector.<FrameUnit>();
		}
		
		public function  AddFrameData(_ox:int, _oy:int, _sourceId:int, _effect:int = 0):void
		{
			Frames.push(new FrameUnit(_ox, _oy, _sourceId, _effect));
		}
		
	}

}